package com.xinqi.modules.sys.document.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.sys.document.domain.DocumentManagerEntity;
import com.xinqi.modules.sys.document.dto.req.DocumentManagerCreateDTO;
import com.xinqi.modules.sys.document.dto.req.DocumentManagerUpdateDTO;
import com.xinqi.modules.sys.document.dto.rsp.DocumentManagerResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 文档管理表转换
 *
 * @author: gzy
 * @date: 2023/05/28
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class DocumentManagerConvert {
    public abstract DocumentManagerEntity create(DocumentManagerCreateDTO s);

    public abstract DocumentManagerEntity update(DocumentManagerUpdateDTO s, @MappingTarget DocumentManagerEntity t);

    public abstract DocumentManagerEntity update(DocumentManagerUpdateDTO s);

    public abstract DocumentManagerResultDTO convert(DocumentManagerEntity s);
}
